package com.dd.ent.car.ui.home.templet.graphic;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import com.android.volley.toolbox.ImageLoader;
import com.dd.ent.car.R;
import com.dd.ent.car.common.bean.graphic.Graphic;
import com.dd.ent.car.ui.home.templet.HomeBottomView;


/**
 * Created by aqu-spring on 16/8/21.
 */
public class GraphicItemView extends FrameLayout {
    private ImageView mPoster;
    public GraphicItemView(Context context) {
        super(context);
        init(context);
    }

    public GraphicItemView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    private void init(Context context) {
        View root = LayoutInflater.from(context).inflate(R.layout.item_list_graphic, this, true);
        mPoster= (ImageView) root.findViewById(R.id.item_icon);
        com.nostra13.universalimageloader.core.ImageLoader.getInstance().displayImage("http://qnwww2.autoimg.cn/newsdfs/g11/M04/15/3F/autohomecar__wKgH4VitOZ-ActpgAAFjNHv-Kvk968.jpg?imageView2/1/w/120/h/90/format/webp",mPoster);
    }

    public void refreshData(int position, Graphic item) {
    }
}
